package cn.iocoder.yudao.module.wms.controller.admin.employee.vo;

import cn.iocoder.yudao.module.wms.enums.RegConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 员工新增/修改 Request VO")
@Data
public class EmployeeSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "11801")
    private String id;

    @NotBlank(message = "家庭住址不能为空")
    @Schema(description = "家庭住址")
    private String address;

    @NotBlank(message = "所在部门不能为空")
    @Schema(description = "所在部门")
    private String department;

    @NotBlank(message = "性别不能为空")
    @Schema(description = "性别")
    private String gender;

    @Pattern(regexp = RegConstants.ID_CARD_REG, message = "身份证格式不正确")
    @NotBlank(message = "身份证不能为空")
    @Schema(description = "身份证")
    private String idCard;

    @NotBlank(message = "姓名不能为空")
    @Schema(description = "姓名", example = "王五")
    private String name;

    @Pattern(regexp = RegConstants.PHONE_REG, message = "联系电话格式不正确")
    @NotBlank(message = "联系电话不能为空")
    @Schema(description = "联系电话")
    private String phone;
}